xenmon: initialise dummy array
authorIan Campbell <ian.campbell@citrix.com>
Wed, 10 Feb 2016 16:26:25 +0000 (16:26 +0000)
committerIan Campbell <ian.campbell@citrix.com>
Thu, 11 Feb 2016 15:12:18 +0000 (15:12 +0000)
commit8b00908c114b0546e12cd1a0076b5af622c6bc08
treee34bfa5ae6ae2fc14154474dcf6b1242b04093aa
parent6d53f40fe19bacaac0cf0786e2fb6df4941426f7
xenmon: initialise dummy array

This is just used to expand the shared backing file to the expected
size (whether this is actually necessary I'm not sure). Rather than
leaking some small amount of the processes' heap set the array to
zeroes.

While at it add a check that the malloc succeeded before using the
result.

Compile tested only.

CID: 1056095 (use of uninitialised data)

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Acked-by: Wei Liu <wei.liu2@citrix.com>
tools/xenmon/xenbaked.c